﻿@model IEnumerable<BookShop3Tables.ViewModels.CategoryAndBooks>

@{
    ViewBag.Title = "Books Statistics";
}

<h2>Books Statistics</h2>
<table>
    <tr>
        <th>
            Release Date
        </th>
        <th>
            Number of Books
        </th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @String.Format("{0:d}", item.ReleaseDate)
        </td>
        <td>
            @item.BookCount
        </td>
    </tr>
}
</table>